package com.htthorizon.model.domain;

import java.io.Serializable;

/**
 * 
 * @TableName model_message_next_user
 */
public class ModelMessageNextUser implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 模型消息ID
     */
    private Long modelMessageId;

    /**
     * 用户ID
     */
    private Long sysUserId;

    /**
     * 用户名(下一步处理人)
     */
    private String sysUserName;

    /**
     * 模型流转ID
     */
    private Long modelMessageFlowId;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 模型消息ID
     */
    public Long getModelMessageId() {
        return modelMessageId;
    }

    /**
     * 模型消息ID
     */
    public void setModelMessageId(Long modelMessageId) {
        this.modelMessageId = modelMessageId;
    }

    /**
     * 用户ID
     */
    public Long getSysUserId() {
        return sysUserId;
    }

    /**
     * 用户ID
     */
    public void setSysUserId(Long sysUserId) {
        this.sysUserId = sysUserId;
    }

    /**
     * 用户名(下一步处理人)
     */
    public String getSysUserName() {
        return sysUserName;
    }

    /**
     * 用户名(下一步处理人)
     */
    public void setSysUserName(String sysUserName) {
        this.sysUserName = sysUserName;
    }

    /**
     * 模型流转ID
     */
    public Long getModelMessageFlowId() {
        return modelMessageFlowId;
    }

    /**
     * 模型流转ID
     */
    public void setModelMessageFlowId(Long modelMessageFlowId) {
        this.modelMessageFlowId = modelMessageFlowId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ModelMessageNextUser other = (ModelMessageNextUser) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getModelMessageId() == null ? other.getModelMessageId() == null : this.getModelMessageId().equals(other.getModelMessageId()))
            && (this.getSysUserId() == null ? other.getSysUserId() == null : this.getSysUserId().equals(other.getSysUserId()))
            && (this.getSysUserName() == null ? other.getSysUserName() == null : this.getSysUserName().equals(other.getSysUserName()))
            && (this.getModelMessageFlowId() == null ? other.getModelMessageFlowId() == null : this.getModelMessageFlowId().equals(other.getModelMessageFlowId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getModelMessageId() == null) ? 0 : getModelMessageId().hashCode());
        result = prime * result + ((getSysUserId() == null) ? 0 : getSysUserId().hashCode());
        result = prime * result + ((getSysUserName() == null) ? 0 : getSysUserName().hashCode());
        result = prime * result + ((getModelMessageFlowId() == null) ? 0 : getModelMessageFlowId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", modelMessageId=").append(modelMessageId);
        sb.append(", sysUserId=").append(sysUserId);
        sb.append(", sysUserName=").append(sysUserName);
        sb.append(", modelMessageFlowId=").append(modelMessageFlowId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}